<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//Dth HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dth">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>editProfileForm editor (edit your data)</title>
</head>
<body>
	<jsp:include page="/resources/templates/top.jsp" />

	<center>
		<form:form method="POST" commandName="EditProfileForm">
			<table>
			<c:if test="${!empty editError}">
				<caption><font color="red" size="+1">You've entered wrong data!</font></caption>
			</c:if>
				<tr>
					<th><form:label path="login">Login</form:label></th>
					<th><form:input path="login" value="${editProfileForm.login}" /></th>
					<th><form:errors path="login" /></th>
				</tr>

				<tr>
					<th><form:label path="password">Password</form:label></th>
					<th><form:password path="password" value="" /></th>
					<th><form:errors path="password" /></th>
				</tr>
				<tr>
					<th><form:label path="password">Repeat password: </form:label></th>
					<th><form:password path="password" value="" /></th>
					<th><form:errors path="password" /></th>
				</tr>

				<tr>
					<th>You're registered as:</th>
					<th><form:label path="userTypeType">${editProfileForm.userTypeType}</form:label>
					</th>
				</tr>

				<tr>
					<th><form:label path="email">Email: </form:label></th>
					<th><form:input path="email" value="${editProfileForm.email}" /></th>
					<th><form:errors path="email" /></th>
				</tr>
				<tr>
					<th><form:label path="skype">Skype: </form:label></th>
					<th><form:input path="skype" value="${editProfileForm.skype}" /></th>
					<th><form:errors path="skype" /></th>
				</tr>
				<tr>
					<th colspan="3"><form:textarea row="5" cols="30"
							path="summary" value="${editProfileForm.summary}" /> <form:errors
							path="summary" /></th>
				</tr>

				<tr>
					<th colspan="3"><input type="submit" value="Edit"></th>
				</tr>
			</table>
		</form:form>
	</center>

</body>
</html>